#include "ExchangeDocumentInstance.h"
#include "ExchangeDocumentReference.h"
#include "common/constant.h"

AMCAX_EXCHANGE_NAMESPACE_BEGIN
    std::shared_ptr<ExchangeDocumentReference> ExchangeDocumentInstance::ExchangeDocumentInstance::GetDocumentReference() const 
    {
         return documentReference_;
    }

    void ExchangeDocumentInstance::SetDocumentReference(std::shared_ptr<ExchangeDocumentReference> documentReference)
    {
        documentReference_ = documentReference;
    }

    std::string ExchangeDocumentInstance::GetPersistName() const
    {
        return pname_;
    }

    void ExchangeDocumentInstance::SetPersistName(const std::string &pname)
    {
        pname_ = std::string(pname);
    }

    ExchangeMatrix ExchangeDocumentInstance::GetTransform() const
    {
        return transform_;
    }

    void ExchangeDocumentInstance::SetTransform(const ExchangeMatrix &matrix)
    {
        transform_ = matrix;
    }

    std::string ExchangeDocumentInstance::GetName() const
    {
        return name_;
    }

    void ExchangeDocumentInstance::SetName(const std::string &name)
    {
        name_ = name;
    }
AMCAX_EXCHANGE_NAMESPACE_END